package com.hibase.core.page.entity.modulexml;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import lombok.Data;

/**
 * 描述:
 *
 * @author li-wei-hua
 * @date 2021-04-13 16:09
 */
@Data
public class ModuleTextXmlVO {

	@XStreamAsAttribute
	@XStreamAlias("dataIndex")
	private String dataIndex;

	@XStreamAsAttribute
	@XStreamAlias("title")
	private String title;

	@XStreamAsAttribute
	@XStreamAlias("hidden")
	private Boolean hidden;

	@XStreamAsAttribute
	@XStreamAlias("readyOnly")
	private Boolean readyOnly;

	@XStreamAsAttribute
	@XStreamAlias("required")
	private Boolean required;

	@XStreamAsAttribute
	@XStreamAlias("verify")
	private String verify;

	@XStreamAsAttribute
	@XStreamAlias("row")
	private Integer row;

	@XStreamAsAttribute
	@XStreamAlias("col")
	private Integer col;

	@XStreamAsAttribute
	@XStreamAlias("span")
	private Integer span;

	@XStreamAsAttribute
	@XStreamAlias("maxLength")
	private Integer maxLength;

	/**
	 * 消息提示
	 */
	@XStreamAsAttribute
	@XStreamAlias("placeholder")
	private String placeholder;
	
	/**
	 * 加减乘除 calcValue="item.code + item.name" 
	 */
	@XStreamAsAttribute
	@XStreamAlias("calcValue")
	private String calcValue;
	
	/**
	 * 事件 根据showRule条件触发是否显示或者隐藏 showRule="item.code !== ''" 
	 */
	@XStreamAsAttribute
	@XStreamAlias("showRule")
	private String showRule;
	
	/**
	 * text支持设值和刷新(隐藏组件)操作
	 */
	@XStreamAlias("UIEvents")
	private ModuleUIEventsXmlVo uiEvents;
}
